package isjinhao.jlox.grammar.expression.represention;

import isjinhao.jlox.grammar.expression.visitor.ExpressionVisitor;
import lombok.Getter;

/**
 * @Author ISJINHAO
 * @Date 2021/2/20 21:33
 */
@Getter
public class Literal extends Expression {

    public Literal(Object value) {
        this.value = value;
    }

    @Override
    public <R> R accept(ExpressionVisitor<R> expressionVisitor) {
        return expressionVisitor.visitLiteralExpr(this);
    }

    private final Object value;
}